package com.dyit.springcloud.hospital.doctor.dao;

import com.dyit.springcloud.hospital.domain.entity.Dept;
import com.dyit.springcloud.hospital.domain.entity.Doctor;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Repository
public interface IDoctorDao extends JpaRepository<Doctor,Integer> {
    List<Doctor> findDoctorsByDept(Dept dept);
    Doctor findDoctorByName(String name);
    List<Doctor> findAll();
    void deleteDoctorById(int id);



}
